
class B {
    int i;
    void func(int i) {
        System.out.println("func(" + i + ")");
    }
    public B(int i) {
        this.i = i;
        System.out.println("B(" + i + ")");
    }

    public B() {

    }
}

class A {
    static B b1;
    static B b2;
    static {
        System.out.println("static A()");
        b1 = new B(1);
        b2 = new B(2);
    }
    public A() {
        System.out.println("A()");
    }
    public static void func() {
        System.out.println("A::func()");
    }
}
public class TestDemo {
    public static void main(String[] args) {
        A.func();
        System.out.println("main()");
        A a = new A();
        A.b1.func(1);
    }
}
